package io.renren.modules.task.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.task.model.TaskDetail;
import io.renren.modules.task.model.TaskDo;
import io.renren.modules.task.model.TaskVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-11-21 17:25:31
 */
@Mapper
public interface TaskMapper extends BaseMapper<TaskDo> {

    List<TaskVo> getTaskList();

    List<TaskVo> createTaskList(@Param("createUserId") Long createUserId);

    List<TaskVo> myTaskList(@Param("userId") Long userId);

    List<TaskVo> auditTaskList(@Param("auditUserId") Long auditUserId);

    TaskDetail getTaskDetail(@Param("taskId") Long taskId);

    TaskVo getById(Long id);

    Integer save(TaskDo taskDo);

    Integer update(TaskDo taskDo);

    Integer deleteIds(Long[] ids);
}
